package com.uplift.mgt.building.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mgt.building.model.BuildingModel;
import com.uplift.mgt.building.model.RealtyEarnings;
import com.uplift.mgt.building.model.RealtyErModel;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.List;
import java.util.Map;

public interface IRealtyEarningsService {
	public List<Map<String, Object>> queryRealtyEarnings(RealtyEarnings realtyEarnings);

	public List<Map<String, Object>> countEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut addRealtyEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut updateRealtyEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut deleteRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 获取房间收益列表
	 * @param realtyErModel
	 * @return
	 */
	public List<Map<String, Object>> queryRoomsEarning(RealtyErModel realtyErModel);

	/**
	 * 导入收益
	 * @param request
	 * @return
	 */
	public void importEarning(MultipartHttpServletRequest request);
}
